<script setup>
import useUserStore from '@/stores/user.js';
const userStore = useUserStore();

const router = useRouter();
const logOut = () => {
    userStore.logout().then(() => {
        router.push('/login');
    });
};
</script>

<template>
    <a-result status="403" title="403" sub-title="Sorry, you don't have access to this page.">
        <template #extra>
            <a-button type="primary" @click="logOut">返回</a-button>
        </template>
    </a-result>
</template>

<style scoped></style>
